home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / fido.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  2.8 KB  |  187 lines

  1.  
  2. #ifndef CNET_FIDO
  3. #define CNET_FIDO
  4.  
  5. #define PRIVATE        0x0001
  6. #define CRASH        0x0002
  7. #define HOLD        0x0200
  8. #define FILEREQUEST    0x0800
  9. #define FILESEND    0x0010
  10.  
  11. struct FidoNet {
  12.     char from[36];
  13.     char to  [36];
  14.     char subject [72];
  15.     char dateline[20];
  16.     USHORT time;
  17.     USHORT destnode;
  18.     USHORT orignode;
  19.     USHORT cost;
  20.     USHORT orignet;
  21.     USHORT destnet;
  22.     USHORT destzone;
  23.     USHORT orignzone;
  24.     USHORT destpoint;
  25.     USHORT orignpoint;
  26.     USHORT replyto;
  27.     USHORT attribute;
  28.     USHORT nextrply;
  29. };
  30.  
  31. struct PacketHeader {
  32.     USHORT    orignode;
  33.     USHORT    destnode;
  34.     USHORT    year;
  35.     USHORT    month;
  36.     USHORT    day;
  37.     USHORT    hour;
  38.     USHORT    minute;
  39.     USHORT    second;
  40.     USHORT    baud;
  41.     USHORT    two_oh;
  42.     USHORT    orignet;
  43.     USHORT    destnet;
  44.     char    fill[34];
  45. };
  46.  
  47. struct PackedMessage {
  48.     USHORT    two_oh;
  49.     USHORT    orignode;
  50.     USHORT    destnode;
  51.     USHORT    orignet;
  52.     USHORT    destnet;
  53.     USHORT    attribute;
  54.     USHORT    cost;
  55.     char    date[20];
  56. };
  57.  
  58. struct NodeType {            // a node that we export-to
  59.     char    *buffer;
  60.     ULONG    buffpos;
  61.     ULONG    buffsize;
  62.  
  63.     USHORT    zone;
  64.     USHORT    net;
  65.     USHORT    node;
  66.     USHORT    point;
  67.  
  68.     USHORT    packer;
  69.     USHORT    format;        // 4d or 2d
  70.     USHORT    type;            // normal, crash, hold
  71.  
  72.     USHORT    flag;            // 0-31 ... which subboards?
  73.     USHORT    domain;        // which fido-net domain?
  74.  
  75.     UBYTE    Access;
  76.     UBYTE    Flags;
  77.  
  78.     USHORT    more[4];
  79.  
  80.     ULONG    incount;
  81.     ULONG    outcount;
  82.  
  83.     char    Password[12];
  84. };
  85.  
  86. struct RouteType {        // a netmail routing pattern
  87.     USHORT    zone;            // from (-1's mean wildcard)
  88.     USHORT    net;
  89.     USHORT    node;
  90.     USHORT    point;
  91.  
  92.     USHORT    zone2;        // to
  93.     USHORT    net2;
  94.     USHORT    node2;
  95.     USHORT    point2;
  96.  
  97.     USHORT    domain;        // which fido-net domain?
  98.     USHORT    type;            // normal, crash, hold
  99.  
  100.     USHORT    more[4];
  101.  
  102.     ULONG    outcount;
  103. };
  104.  
  105. struct PacketType {
  106.     struct    PacketType *next;
  107.  
  108.     char    filename[32];
  109.     struct    IsDate date;
  110. };
  111.  
  112. struct ImportType {
  113.     struct    ImportType *next;
  114.  
  115.     USHORT    zone0, net0, node0, point0;
  116.     ULONG    data;
  117.  
  118.     long    seek;
  119.     long    end;
  120.     long    seen;                // index
  121.     long    xoff;                // index
  122.  
  123.     struct    IsDate date;
  124.  
  125.     UBYTE    isdupe, isfull;
  126. };
  127.  
  128. struct    DupeType {
  129.     USHORT    zone;
  130.     USHORT    net;
  131.     USHORT    node;
  132.     USHORT    point;
  133.     ULONG    data;
  134. };
  135.  
  136. struct    EchoType {
  137.     char    Title[24];
  138.     ULONG    ExportTo[4];                // export to which node types
  139.  
  140.     struct    ImportType *first;    // during toss, list to import
  141.     struct    ImportType *last;
  142.  
  143.     USHORT    listn;                    // during toss, which local sub?
  144.     USHORT    domain;
  145.  
  146.     struct    DupeType *duptab;
  147.     ULONG    incount;
  148.     ULONG    outcount;
  149.  
  150.     USHORT    dupsize;
  151.  
  152.     UBYTE    dupdelta;
  153.     UBYTE    Access;
  154.     UBYTE    Flags;
  155.  
  156.     UBYTE    other[3];
  157.  
  158.     char    Info[48];
  159. };
  160.  
  161. struct    EchoType4 {
  162.     char    Title[80];                    // same as unique dirname
  163.     ULONG    ExportTo[4];                // export to which node types
  164.  
  165.     struct    ImportType *first;    // during toss, list to import
  166.     struct    ImportType *last;
  167.  
  168.     USHORT    listn;                    // during toss, which local sub?
  169.     USHORT    domain;
  170.  
  171.     struct    DupeType *duptab;
  172.     ULONG    incount;
  173.     ULONG    outcount;
  174.  
  175.     USHORT    dupsize;
  176.  
  177.     UBYTE    dupdelta;
  178.     UBYTE    Access;
  179.     UBYTE    Flags;
  180.  
  181.     UBYTE    other[3];
  182.  
  183.     char    Info[48];
  184. };
  185.  
  186. #endif
  187.